﻿namespace OpenAdmin.Application.Services;

/// <summary>
/// 接口相关服务
/// </summary>
public interface IApiResourceService
{
    /// <summary>
    /// 分页获取接口列表
    /// </summary>
    /// <param name="requestDto"></param>
    /// <returns></returns>
    Task<PagedList<ApiResourcesByPageResponseDto>> GetApiResourcesByPage(ApiResourcesByPageRequestDto requestDto);

    /// <summary>
    /// 获取全部接口列表
    /// </summary>
    /// <returns></returns>
    Task<List<ApiResourcesResponseDto>> GetApiResources();

    /// <summary>
    /// 添加接口
    /// </summary>
    /// <param name="requestDto"></param>
    /// <returns></returns>
    Task AddApiResource(AddApiResourceRequestDto requestDto);

    /// <summary>
    /// 更新接口信息
    /// </summary>
    /// <param name="requestDto"></param>
    Task EditApiResource(EditApiResourceRequestDto requestDto);

    /// <summary>
    /// 删除接口
    /// </summary>
    /// <param name="id"></param>
    Task DeleteApiResource(int id);
}
